#!/bin/bash 
sort d.txt > d1.txt
sort b.txt > b1.txt
echo "只包含在d.txt; 只包含在b.txt; d和b的相同行(交集)"
comm d1.txt b1.txt
echo "差集"
comm d1.txt b1.txt -3 |sed 's/^\t//'
echo "去重并集"
cat d1.txt b1.txt |sort|uniq
